package cn.uin.domain.auth.adapter.port;

import cn.uin.domain.auth.model.entity.SendEmailEntity;

/**
 * @ClassName AuthNotificationPort
 * @Description:认证通知服务(发送短信、邮箱等)
 * @Author: Administrator
 * @CreateDate: 2025/10/27 14:34
 * @Version: 1.0
 */
public interface IAuthNotificationPort {

	/**
	 * 发送邮件验证码
	 * @param email
	 * @param type: 验证码类型(1:注册验证码 ,2:登录验证码)
	 * @return
	 */
	boolean sendEmailCode(Integer type, String email);

	/**
	 * 发送手机验证码
	 * @param phone
	 * @param type: 验证码类型(1:注册验证码 ,2:登录验证码)
	 * @return
	 */
	boolean sendPhoneCode(Integer type, String phone);

}
